package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.gcgl.mapper.SjProjectPeopleMapper;
import com.ruoyi.gcgl.domain.SjProjectPeople;
import com.ruoyi.gcgl.service.ISjProjectPeopleService;
import com.ruoyi.common.core.text.Convert;

/**
 * 项目成员管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
@Service
public class SjProjectPeopleServiceImpl implements ISjProjectPeopleService 
{
    @Autowired
    private SjProjectPeopleMapper sjProjectPeopleMapper;

    /**
     * 查询项目成员管理
     * 
     * @param id 项目成员管理主键
     * @return 项目成员管理
     */
    @Override
    public SjProjectPeople selectSjProjectPeopleById(Long id)
    {
        return sjProjectPeopleMapper.selectSjProjectPeopleById(id);
    }

    /**
     * 查询项目成员管理列表
     * 
     * @param sjProjectPeople 项目成员管理
     * @return 项目成员管理
     */
    @Override
    public List<SjProjectPeople> selectSjProjectPeopleList(SjProjectPeople sjProjectPeople)
    {
        return sjProjectPeopleMapper.selectSjProjectPeopleList(sjProjectPeople);
    }

    /**
     * 新增项目成员管理
     * 
     * @param sjProjectPeople 项目成员管理
     * @return 结果
     */
    @Override
    public int insertSjProjectPeople(SjProjectPeople sjProjectPeople)
    {
        return sjProjectPeopleMapper.insertSjProjectPeople(sjProjectPeople);
    }

    /**
     * 修改项目成员管理
     * 
     * @param sjProjectPeople 项目成员管理
     * @return 结果
     */
    @Override
    public int updateSjProjectPeople(SjProjectPeople sjProjectPeople)
    {
        return sjProjectPeopleMapper.updateSjProjectPeople(sjProjectPeople);
    }

    /**
     * 批量删除项目成员管理
     * 
     * @param ids 需要删除的项目成员管理主键
     * @return 结果
     */
    @Override
    public int deleteSjProjectPeopleByIds(String ids)
    {
        return sjProjectPeopleMapper.deleteSjProjectPeopleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目成员管理信息
     * 
     * @param id 项目成员管理主键
     * @return 结果
     */
    @Override
    public int deleteSjProjectPeopleById(Long id)
    {
        return sjProjectPeopleMapper.deleteSjProjectPeopleById(id);
    }

	@Override
	public int deleteSjProjectPeople4Gid(Long gcProjectid) {
		return sjProjectPeopleMapper.deleteSjProjectPeople4Gid(gcProjectid);
	}
}